/**
 *
 * @param cb Function(item , index)
 * @returns {*}
 */
Array.prototype.findLast = function (cb) {
    if (typeof cb !== 'function') {
        throw new TypeError('cb always is function');
    }

    let arr = this;
    for (let index = arr.length - 1 ; index >= 0 ; index--) {
        if (cb(arr[ index ], index)) {
            return arr[ index ];
        }
    }
};
